home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _D751E3828D864E3AA71EA25ACAC3CD55 < prev    next >
Encoding:
Text File  |  2004-07-20  |  4.5 KB  |  192 lines

  1. // $TEXTURE1
  2. // $TEX1OPTIONSFILE
  3. // $DIRT
  4. // $DIRTOPTIONSFILE
  5. // $NORMALS
  6. // $NORMALSOPTIONSFILE
  7. // $SPECPOW
  8.  
  9. Shader()
  10. {
  11.     ShaderQuality(4)
  12.     Pass()
  13.     {
  14.         VertexShader("CarBR_CmCdDm_ps20.vsh")
  15.         Pixelshader("CarBR_CmCdDm_ps20.psh")
  16.  
  17.         !include("__Tex1.mtt")
  18.         !include("__Dirt.mtt")
  19.         !include("__CloudsVS.mtt")
  20.         //!include("__TerrainColormapVS.mtt")
  21.         !include("__TerrainColormapSmallVS.mtt")        
  22.         // !include("__DynamicCubeMap.mtt")
  23.         !include("__CubeMap.mtt")        
  24.         !include("__DirtNormalsMap.mtt")
  25.  
  26.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  27.     }
  28.     Cull("cw")
  29. }
  30.  
  31. shader()
  32. {
  33.     ShaderQuality(3)
  34.     pass()
  35.     {
  36.         //Lighting()
  37.         Pixelshader("CarBR_CmCd_ps14.psh")
  38.         Vertexshader("CarBR_CmCd_ps14.vsh")
  39.  
  40.         !include("__tex1.mtt")
  41.         !include("__Dirt.mtt")
  42. //        !include("__TerrainColormapVS.mtt")
  43.         !include("__TerrainColormapSmallVS.mtt")
  44.         !include("__CloudsVS.mtt")
  45. //        !include("__DynamicCubeMap.mtt")
  46.         !include("__CubeMap.mtt")
  47.  
  48.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  49.     }
  50.     Cull("cw")
  51. }
  52.  
  53. shader()
  54. {
  55.     ShaderQuality(2)
  56.     pass()
  57.     {
  58.         //Lighting()
  59.         Pixelshader("CarBR_Cm_ps11.psh")
  60.         Vertexshader("CarBR_Cm_ps11.vsh")
  61.  
  62.         !include("__tex1.mtt")
  63.         !include("__Dirt.mtt")
  64.         !include("__TerrainColormapSmallVS.mtt")
  65. //        !include("__DynamicCubeMap.mtt")        
  66.         !include("__CubeMap.mtt")        
  67.  
  68.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  69.     }
  70.     Cull("cw")
  71. }
  72.  
  73. shader()
  74. {
  75.     ShaderQuality(1)
  76.     pass()
  77.     {
  78.         //Lighting()
  79.         Pixelshader("CarBR_ps11.psh")
  80.         Vertexshader("CarBR_ps11.vsh")
  81.  
  82.         !include("__tex1.mtt")
  83.         !include("__Dirt.mtt")
  84.         !include("__TerrainColormapSmallVS.mtt")
  85.  
  86.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
  87.     }
  88.     Cull("cw")
  89. }
  90.  
  91.  
  92. //=========================== GF2 ======================================
  93. shader()
  94. {
  95.     ShaderQuality(2)
  96.  
  97.     pass()
  98.     {
  99.         Lighting()
  100.         tmu()
  101.         {
  102.             TexGen("planar")
  103.             TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
  104.             texture()
  105.             {
  106.                 Image(%colortexturesmall)
  107.                 addressfunc("clamp", "clamp", "clamp")
  108.             }
  109.             ColorOp("mul_add", "texture_a", "current", "diffuse_a")
  110.             AlphaOp("arg1", "texture_a", "current", "current")
  111.         }
  112.         AmbientColor(0.0, 0.0, 0.0, 1.000)
  113.         DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
  114.         SpecularColor(0.0, 0.0, 0.0, 1.000)
  115.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  116.         SpecularPow(0.0)
  117.                
  118.     }
  119.     lightpass()
  120.     !include("spot_spotmap.mtt")
  121.  
  122.     pass()
  123.     {
  124.         Lighting()
  125.         tmu()
  126.         {
  127.             Texture()
  128.             {
  129.                 Mapchannel(0)
  130.                 Image(DIRT_GF2)
  131.                 !include(DIRTOPTIONSFILE)
  132.             }
  133.             ColorOp("arg1", "tfactor", "current", "current")
  134.             AlphaOp("mul", "tfactor_a", "texture_a", "current")       
  135.         }
  136.         tmu()
  137.         {
  138.             Texture()
  139.             {
  140.                 Mapchannel(0)
  141.                 Image(TEXTURE1)
  142.                 !include(TEX1OPTIONSFILE)
  143.             }
  144.             ColorOp("blend_current_alpha", "current", "texture", "current")
  145.         }
  146.  
  147.         tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
  148.         colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
  149.    
  150.         AmbientColor(0.0, 0.0, 0.0, 1.0)
  151.         DiffuseColor(0.0, 0.0, 0.0, 1.0)
  152.         SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
  153.         EmissiveColor(0.0, 0.0, 0.0, 1.000)
  154.         SpecularPow(SPECPOW)                
  155.  
  156.         BlendFunc("zero", "src_color")
  157.     }
  158.  
  159.     Cull("cw")
  160. }
  161. //=======================================================
  162. /*
  163. shader()
  164. {
  165.     ShaderQuality(0)
  166.     pass()
  167.     {
  168.         Lighting()
  169.         Pixelshader("Common_specular.psh")
  170.         Vertexshader("Common_specular.vsh")
  171.         !include("__tex1.mtt")
  172.     }
  173.     Cull("cw")
  174. }
  175. */
  176. shader()
  177. {
  178.     ShaderQuality(0)
  179.     pass()
  180.     {
  181.         Lighting()
  182.         !include("__tex1.mtt")
  183.  
  184.         !include("__LightningColorsSpecGF2.mtt")                
  185.     }
  186. //    lightpass()
  187. //    !include("spot_spotmap.mtt")
  188.     
  189.     Cull("cw")
  190. }
  191.  
  192.